#include<iostream>
#include<string>
using namespace std;

class Complex
{
public:
	Complex(int a, int b)
	{
		m_a = a;
		m_b = b;
	}

	bool operator==(Complex & c)
	{
		if (this->m_a == c.m_a&&this->m_b == c.m_b)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	bool operator!=(Complex & c)
	{
		if (this->m_a == c.m_a&&this->m_b == c.m_b)
		{
			return false;
		}
		else
		{
			return true;
		}
	}

private:
	int m_a;
	int m_b;
};

int main()
{
	Complex a(1, 1), b(1, 2), c(1, 2);

	cout << "ab" << (a == b) <<" ab"<<(a != b)<< " bc" << (b != c) << " bc" << (b == c) << endl;

	system("pause");
	return 0;
}